#include<stdio.h>
#include<math.h>
/*int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int key = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	scanf_s("%d", &key);
	int right = sz - 1;
	int left = 0;
	while (left <= right)
	{
		int mid = (right + left) / 2;
		if (key < arr[mid])
		{
			right=mid-1;
		}
		else if (key > arr[mid])
		{
			left = mid + 1;
		}
		else
		{
			printf("找到了,下标为%d\n", mid);
			return 1;
		}
	}
	return -1;
}
*/
/*int is_prime(int n)
{
	int i,temp = 0;
	for (i = 2; i <= sqrt(n); i++)
	{
		if (n % i == 0)
		{
			temp = 0;
			break;
		}
	}
	if (temp == 1)
	{
		return n;
	}
}
int main()
{
	int i = 0;
	for (i = 101; i <= 200; i += 2)
	{
		int result = is_prime(i);
		printf("%d\t", i);
	}
	return 0;
}
*/
/*int main()
{
	int year = 0;
	scanf_s("%d", &year);
	if ((year % 4 == 0 && year / 100 != 0) || year % 400 == 0)
	{
		printf("%d是闰年\n", year);
	}
	else
	{
		printf("%d不是闰年\n", year);
	}
	return 0;
}
*/
/*int main()
{
	int m = 0;
	scanf_s("%d", &m);
	int i, j = 0;
	for (i = 1; i <= m; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%2d *%2d =%2d ", i, j, i * j);
		}
		printf("\n");
	}
	return 0;
}
*/
/*void init(int* arr, int sz)
{
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		arr[i] = 0;
	}
}
void print(int* arr, int sz)
{
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
}
void reserve(int* arr,int sz)
{
	int left = 0;
	int right = sz - 1;
	int temp = 0;
	while (left <= right)
	{
		temp = arr[right];
		arr[right--] = arr[left];
		arr[left++] = temp;
	}
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	print(arr,sz);
	reserve(arr,sz);
	init(arr, sz);
	return 0;
}*/
int main()
{
	int a[7] = { 1,2,3,4,5,6,7 };
	int b[7] = { 8,9,10,11,12,13 };
	for (int i = 0; i < 7; i++)
	{
		int temp = a[i];
		a[i] = b[i];
		b[i] = temp;
	}
	for (int i = 0; i < 7; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
	for (int i = 0; i < 7; i++)
	{
		printf("%d ", b[i]);
	}
	return 0;
}